package com.cnpinxi.domain;

import java.util.Date;

public class Payment {

    /**
     * 卡券
     */
    public static final  Byte PAY_MODE_CERTIFICAT=1;
    /**
     * 网站网银
     */
    public static final  Byte PAY_MODE_CHINAPAY=2;
    /**
     * 网站支付宝
     */
    public static final  Byte PAY_MODE_ALIPAY=3;
    /**
     * 网站微信
     */
    public static final  Byte PAY_MODE_WECHAT=4;
    /**
     * 余额
     */
    public static final  Byte PAY_MODE_ACCOUNT_CASH=5;
    /**
     * wap微信
     */
    public static final  Byte PAY_MODE_WECHAT_BY_WECHATSET=6;
    /**
     * wap支付宝
     */

    public static final  Byte PAY_MODE_ALIPAY_BY_WECHATSET=7;

    /**
     * 活动优惠
     */
    public static final  Byte PAY_MODE_ACTIVITY_CONCESSIONAL=8;
    /**
     * 兑换支付
     */
    public static final  Byte PAY_MODE_CONVERSION=9;

    /**
     * 支付
     */
    public static final  Byte PAY_TYPE_PAY=1;
    /**
     * 退款
     */
    public static final  Byte PAY_TYPE_REFUND=2;

    private Long tid;

    private Long orderId;

    private Integer price;


    private Byte payType;

    private Byte payMode;
    private Byte status;


    private String extOrderId;
    private String certificateId;

    private Date createTime;

    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Byte getPayType() {
        return payType;
    }

    public void setPayType(Byte payType) {
        this.payType = payType;
    }

    public Byte getPayMode() {
        return payMode;
    }

    public void setPayMode(Byte payMode) {
        this.payMode = payMode;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getExtOrderId() {
        return extOrderId;
    }

    public String getCertificateId() {
        return certificateId;
    }

    public void setCertificateId(String certificateId) {
        this.certificateId = certificateId;
    }

    public void setExtOrderId(String extOrderId) {
        this.extOrderId = extOrderId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Payment{" +
                "tid=" + tid +
                ", orderId=" + orderId +
                ", price=" + price +
                ", payType=" + payType +
                ", payMode=" + payMode +
                ", status=" + status +
                ", extOrderId='" + extOrderId + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}